import { createApp } from 'vue';
import App from './App.vue'
import router from './router'
import { createPinia } from 'pinia';

// 引入 Element Plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const pinia = createPinia();

const app = createApp(App);



// 注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
// 注册 Element Plus
app.use(ElementPlus)
app.use(pinia);
app.use(router)
app.mount('#app');
